﻿/* 异步请求结果返回状态码 */
var ResultStatus = {
    OK: 100,
    Failed: 101,
    NotLogin: 102,
    Unauthorized: 103
};

var ajaxType = {
    get: 'Get',
    post: 'Post'
};

var accountStatus = {
    1:'正常',
    2:'被禁用',
    3: '已注销'
}
var GetAccountStatus = function (state)
{
    return accountStatus[state];
}

//角色
var Role = {
    createUserId: "",
    creationTime: "",
    deleteUserId: null,
    deletionTime: null,
    description: null,
    id: "",
    isDeleted: false,
    isEnabled: true,
    lastModifyTime: null,
    lastModifyUserId: null,
    name: "",
    sortCode: null,
}

//组织
var Org = {
    creationTime: "",
    deleteUserId: null,
    deletionTime: null,
    description: null,
    id: "",
    isDeleted: false,
    managerId: null,
    name: "产品部",
    orgType: 0,
    parentId: "",
}

//用户加入的组织
var userOrg = {
    disablePermission: false,
    id: "",
    org:null,
    orgId: "",
    userId: "",
}


